home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(shoot == true && ready != true)
- {
- this._x = _root.dragony._x + 115;
- xValueThis = _root.dragony._x + 115;
- this._y = _root.dragony._y + 10;
- ready = true;
- }
- if(shoot == true)
- {
- this._y += 1 + gravity;
- gravity += 0.5;
- xThingAdd = (aimX - xValueThis) / 20;
- if(this._x < aimX)
- {
- this._x += xThingAdd;
- }
- if(this.hitTest(_root.ground))
- {
- this.shoot = false;
- this.gotoAndPlay(2);
- }
- }
- }
-